#include "../include/PairWires.h"

PairWires::PairWires(const Wire& FirstWireD_, const Wire& OtherWireD_, const double& PairWiresSpacing) {
	this->FirstWireD_ = FirstWireD_;
	this->OtherWireD_ = OtherWireD_;
	this->PairWiresSpacing = PairWiresSpacing;
}

Wire PairWires::getOtherPairWires(Wire& InputWire) {
	if (InputWire == this->FirstWireD_) {
		return this->OtherWireD_;
	}
	else {
		return this->FirstWireD_;
	}

}

std::vector<Line> PairWires::getCenterLines(const Wire& InputWire) {
	return InputWire.CentralSegments;
}

std::vector<std::vector<Line> > PairWires::getAllCenterLines() {
	std::vector<Line> line_1 = getCenterLines(this->FirstWireD_);
	std::vector<Line> line_2 = getCenterLines(this->OtherWireD_);

	std::vector<std::vector<Line> > outLines;
	outLines.emplace_back(line_1);
	outLines.emplace_back(line_2);


	return outLines;
}